package com.suliao.home.serviceImpl.product;

import com.suliao.home.entity.product.TypeDO;
import com.suliao.home.mapper.product.TypeMapper;
import com.suliao.home.service.product.TypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.models.auth.In;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author： M1nG-CodeGenerator
 * @since： 2020-12-14 16:04:57
 * @description： 产品类型 服务实现类
 * @version： 1.0
 */
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, TypeDO> implements TypeService {


    @Autowired
    private TypeMapper typeMapper;

    @Override
    public TypeDO findById(Integer id) {
        return typeMapper.findById(id);
    }
    /**
     * 查询展品产品类别信息
     * @param
     * @return
     */
    @Override
    public List<TypeDO> customNames() {
        return typeMapper.customNames();
    }

    @Override
    public List<TypeDO> customName(Integer customParentId) {
        return typeMapper.customName(customParentId);
    }

    @Override
    public List<TypeDO> custom(Integer id) {
        return typeMapper.custom(id);
    }
}
